//
//  QSViewCellOption.m
//  Gunz
//
//  Created by Joggy on 16/8/23.
//  Copyright © 2016年 NUPT. All rights reserved.
//

#import "QSViewCellOption.h"

@implementation QSViewCellOption

- (instancetype)initWithOption:(NSString *)option {
    self = [super initWithFrame:CGRectMake(0, 0, screenWidth, 44)];
    
    _pointButton = [[PointButton alloc] init];
    _pointButton.center = CGPointMake(44, self.frame.size.height/2);
    [self addSubview:_pointButton];
    
    UILabel *optionLabel = [[UILabel alloc] initWithFrame:CGRectMake(55, 0, self.frame.size.width - 48, self.frame.size.height)];
    optionLabel.text = option;
    [self addSubview:optionLabel];
    
    return self;
}

@end
